package com.junxonline.plat.dao.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.junxonline.plat.dao.model.DatabaseTable;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

public class DatabaseVO implements java.io.Serializable {

    private Long databaseId;

    private String databaseName;

    private Integer databaseType;

    private String databaseTypeString;

    private String databaseHash;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date databaseActionTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date databaseDate;

    private String createUsername;

    private Long createUserId;

    public DatabaseVO() {

    }

    public Long getDatabaseId() {
        return databaseId;
    }

    public void setDatabaseId(Long databaseId) {
        this.databaseId = databaseId;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public Integer getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(Integer databaseType) {
        this.databaseType = databaseType;
    }

    public String getDatabaseTypeString() {
        return databaseTypeString;
    }

    public void setDatabaseTypeString(String databaseTypeString) {
        this.databaseTypeString = databaseTypeString;
    }

    public String getDatabaseHash() {
        return databaseHash;
    }

    public void setDatabaseHash(String databaseHash) {
        this.databaseHash = databaseHash;
    }

    public Date getDatabaseActionTime() {
        return databaseActionTime;
    }

    public void setDatabaseActionTime(Date databaseActionTime) {
        this.databaseActionTime = databaseActionTime;
    }

    public Date getDatabaseDate() {
        return databaseDate;
    }

    public void setDatabaseDate(Date databaseDate) {
        this.databaseDate = databaseDate;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }
}
